export function exportExcel(title = "表格", data = undefined) {
  if (!data) return false
  var downloadUrl = window.URL.createObjectURL(new Blob([data]))
  var a = document.createElement("a")
  a.style.display = "none"
  a.href = downloadUrl
  a.download = title + ".csv"
  var event = new MouseEvent("click")
  a.dispatchEvent(event)
}
